summaryrefslogtreecommitdiff
path: root/src/functionexists.cpp
blob: 71e03f6408d1e13009624ec40511bdde9ea75e01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "functionexists.h"

#include "gamestate.h"

FunctionExists::FunctionExists()
{
}

FunctionExists::~FunctionExists()
{
}

void FunctionExists::call( class GameState &gState )
{
	Variable v = gState.pop();
	VariableRef r = v.getVariableRef();
	gState.push( Variable( gState.hasVariable( r.sName, r.sid ) ) );
}